package com.ebuy.shopping.mapper;

import java.util.List;
import java.util.Map;

import com.ebuy.shopping.model.News;

public interface NewsMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(News record);
	// 添加新闻
	int insertSelective(News record);

	News selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(News record);

	int updateByPrimaryKey(News record);
	// 分页查询
	List<News> selectNewsPage(Map<String, Object> map);
}